MavlinkCommand

open class MavlinkCommand

A MAVLink command.

Clients of this API cannot instantiate this class directly, and must use one of the subclasses defining a specific MAVLink command. If a subclass does not describe the command you want to use use OtherMavlinkCommand.

Parameters

type

the MAVLink command type. If the type is Type.OTHER then rawType must be greater than 0.

_rawType

the MAVLink raw type. If greater than zero then type must be Type.OTHER.

frame

the reference frame of the coordinates.

Inheritors

Constructors

Link copied to clipboard
constructor(type: MavlinkCommand.Type, rawType: Int = -1, frame: MavlinkCommand.Frame = Frame.RELATIVE, param1: Double = Double.NaN, param2: Double = Double.NaN, param3: Double = Double.NaN, param4: Double = Double.NaN, param5: Double = Double.NaN, param6: Double = Double.NaN, param7: Double = Double.NaN)

Constructor.

Types

Link copied to clipboard
object Companion
Link copied to clipboard

The reference frame of the command.

Link copied to clipboard

MAVLink command type.

Properties

Link copied to clipboard
Link copied to clipboard

The coordinate frame; set to global coordinate frame or relative altitude over ground.

Link copied to clipboard

the raw parameters of the command

Link copied to clipboard

The MAVLink command type

Functions

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun write(writer: Writer, index: Int, frame: MavlinkCommand.Frame)

Writes the MAVLink command to the given writer.